-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add(FR-9): autoscaling feature UI in model service creation/modification panel #3024
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 4.69% (-0.03% 🔻) |
400/8534 |
🔴 | Branches | 4.06% (-0.05% 🔻) |
239/5886 |
🔴 | Functions | 2.84% (-0.04% 🔻) |
78/2747 |
🔴 | Lines | 4.61% (-0.03% 🔻) |
385/8351 |
Show new covered files 🐣
St.❔ |
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|---|
🔴 | ... / AutoScalingRuleEditorModal.tsx |
0% | 0% | 0% | 0% |
Show files with reduced coverage 🔻
St.❔ |
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|---|
🔴 | ... / InputNumberWithSlider.tsx |
4.55% (-0.45% 🔻) |
0% | 0% | 4.55% (-0.45% 🔻) |
Test suite run success
124 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from 419be5e
9fbef16
to
a229465
Compare
a229465
to
8c2825f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the ESLint failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my comment and reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't make a new rule if the name is same as the one that previously deleted.
https://github.com/user-attachments/assets/388a7640-0340-4635-9602-abbe0f3a40ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
95da7a6
to
5fe60d0
Compare
8998bf3
to
128e942
Compare
128e942
to
ee1e261
Compare
71f06f7
to
6268a28
Compare
136bf9d
to
1fca264
Compare
1fca264
to
eabb67e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
97bb040
to
38d141b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merge activity
|
…ion panel (#3024) <!-- Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes, and how it affects the users and other developers. --> This PR resolves applying UI for a new key feature, "applying auto scaling rule" for each model service, which allows gradual update of the volume of model service (mostly routing(session)) according to the rule(s). PLEASE REMIND THAT it's the user matters to consider the consequences of applying the rules, for now. In this PR, there's a new panel added in service detail page, and user can add auto scaling rule by clicking "Add Rules" on the right side of panel. After input all required in popped up modal, and click "OK" button, the rule will be applied immediately to service. ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/c0504be3-64ec-46ae-a7aa-5930b3a25f0e.png) If user want to edit certain rule, then clicking the `gear` icon in corresponding row will do. The Rest of the rule applying mechanism would be same as creation. ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/a26baac4-3a08-4b02-ab77-e01bab859ca6.png) When user want to delete a rule, then user just need to click the red `trash bin` icon next to the `gear` icon. After clicking the button, there's a confirmation popup modal appears, and clicking `Delete` button will remove the rule right away. ![Screenshot 2025-02-05 at 6.51.30 PM.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/Dgoz5XqHffJdivyccymr/09bc3d73-a854-4301-b586-12ffa29e5b41.png) ### How to test > Prerequisites: > - model-service enabled Backend.AI Core environment - [ ] 1. User can create auto scaling rule for each service. - [ ] 2. User can see auto scaling rule(s) in service detail(routing info) page. - [ ] 3. User can update auto scaling rule. - [ ] 4. User can delete auto scaling rule. **Checklist:** (if applicable) - [ ] Mention to the original issue - [ ] Documentation - [ ] Minimum required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [X] Test case(s) to demonstrate the difference of before/after
9aeab1b
to
419be5e
Compare
This PR resolves applying UI for a new key feature, "applying auto scaling rule" for each model service, which allows gradual update of the volume of model service (mostly routing(session)) according to the rule(s). PLEASE REMIND THAT it's the user matters to consider the consequences of applying the rules, for now.
In this PR, there's a new panel added in service detail page, and user can add auto scaling rule by clicking "Add Rules" on the right side of panel. After input all required in popped up modal, and click "OK" button, the rule will be applied immediately to service.
If user want to edit certain rule, then clicking the
gear
icon in corresponding row will do. The Rest of the rule applying mechanism would be same as creation.When user want to delete a rule, then user just need to click the red
![Screenshot 2025-02-05 at 6.51.30 PM.png](https://camo.githubusercontent.com/f08a43e30954bb628d702c1234213f44bfc94e0940560ab81dfb00c51bc0149b/68747470733a2f2f67726170686974652d757365722d75706c6f616465642d6173736574732d70726f642e73332e616d617a6f6e6177732e636f6d2f44676f7a3558714866664a646976796363796d722f30396263336437332d613835342d343330312d623538362d3132666661323965356234312e706e67)
trash bin
icon next to thegear
icon. After clicking the button, there's a confirmation popup modal appears, and clickingDelete
button will remove the rule right away.How to test
Checklist: (if applicable)